package com.wu.ssm.spring.mvc;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by wzf on 2018/12/13/013.
 */
public class RequestMappingHandlerAdapter implements HandlerAdapter {


    @Override
    public boolean supports(Object handler) {
        return (handler instanceof RequestMappingHandler);
    }

    @Override
    public void handle(Object handler, HttpServletRequest request, HttpServletResponse response) {
        ((RequestMappingHandler)handler).doRequestMappingHandler(request, response);
    }

}
